package sh.wn36.vehiclemanage.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author xk
 * @since 2021-04-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName("q_users")
@ApiModel(value="QUsers对象", description="")
public class QUsers implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "登录名")
    private String lname;

    @ApiModelProperty(value = "密码")
    private String lpass;

    @ApiModelProperty(value = "真实姓名")
    private String rname;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "性别")
    private String gender;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "部门ID")
    private Integer did;

    @ApiModelProperty(value = "职位ID")
    private Integer postid;
//    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd")
    @DateTimeFormat
    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "身份证")
    private String card;

//    @JsonFormat(timezone="GMT+8",pattern="yyyy-MM-dd")
    @DateTimeFormat
    @ApiModelProperty(value = "入职日期")
    private Date entrytime;

    @TableField(fill =FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "是否停用1,0")
    private Integer isdisable;

    @Version
    @TableField(fill =FieldFill.INSERT)
    @ApiModelProperty("乐观锁控制版本号")
    private Integer version;


    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date gmtModified;


}
